package com.craney.aboutFilter
{
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.filters.DropShadowFilter;
	
	public class TestDropShadow
	{
		public function TestDropShadow(ps:Sprite)
		{
			var shape:Shape = new Shape();
			
			shape.graphics.lineStyle(1);
			shape.graphics.beginFill(0xFF3300);
			shape.graphics.drawRect(0, 0, 100, 100);
			shape.graphics.endFill();

			
			
			var dropShadow:DropShadowFilter = new DropShadowFilter();
			
			dropShadow.blurX = 100;
			dropShadow.blurY = 50;
			dropShadow.distance = 10;
			dropShadow.angle = 45;
//			dropShadow.knockout = true;
			dropShadow.color = 0xffcc00;
			ps.addChild(shape);
			shape.filters = [dropShadow];
			
		}

	}
}